<%@page import="com.rocky.ssm.model.Students"%>
<%@page import="com.rocky.ssm.dao.stuBaseDao"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>学员修改页面</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

    <!--引入jQuery  -->
	<script type="text/javascript" src="js/jquery-1.8.3.js" ></script>
	<style type="text/css">
	/* 基本信息、描述信息样式 */
		div{
			background-color: rgb(217,237,247);
			width: 100%;
		}
	/* 超链接去除下划线 */
		a{
			text-decoration: none;
		}
	</style>
	
	
	<script type="text/javascript">
		
	</script>
	
	
	
  </head>
  <%
  	//处理编码
	request.setCharacterEncoding("utf-8");
	response.setCharacterEncoding("utf-8");
	
  	//接收参数stu_id
  	int stu_id =0;
  	String strstu_id = request.getParameter("stu_id");
  	if(strstu_id != null && !"".equals(strstu_id)) {
  		stu_id = Integer.parseInt(strstu_id);	
  	}
 
  	
  	//调用getStuById()方法
  	stuBaseDao sbd = new stuBaseDao();
  	Students students =	sbd.getStuById(stu_id);
 	
   %>
  
  <body>
   	<!--设计学员修改界面  -->
<div>基本信息</div><br/>
   <form action="do_stu_update.jsp" method="post">
   		<table align="center" cellspacing="8" >
   			<tr>
   				 <td>编号</td>
   				<td><input type="text" value="<%=students.getStuId()%>" name="stu_id" readonly = "readonly"></td>
   				<td>姓名</td>
   				<td><input type="text" value="<%=students.getStuName()%>" name="stu_name"></td>
   			</tr>
   			<tr>
   				<td>性别</td>
   				<td>
   					<select name="stu_gender">
 					<option  value="保密">保密</option>
   						<option  value="男">男</option>
   						<option  value="女">女</option>
   					</select>   				
   				</td>
   				<td>年龄</td>
   				<td><input type="text" value="<%=students.getStuAge()%>"name="stu_age"></td>
   			</tr>
   			<tr>
   				<td>手机号码</td>
   				<td><input type="text" value="<%=students.getStuTel()%>" name="stu_tel"></td>
   				<td>电子邮件</td>
   				<td><input type="text" value="<%=students.getStuEmail()%>" name="stu_email"></td>
   			</tr>
   			<tr>
   				<td>身份证</td>
   				<td><input type="text" value="<%=students.getStuId()%>" name="stu_IDcard"></td>
   				<td>家庭地址</td>
   				<td><input type="text" value="<%=students.getStuAddress()%>" name="stu_address"></td>
   			</tr>
   			<tr>
   				<td>出生日期</td>
   				<td><input type="text" value="<%=students.getStuBirth()%>" name="stu_birth"></td>
   				<td>所在院校</td>
   				<td><input type="text" value="<%=students.getStuSchool()%>" name="stu_school"></td>
   			</tr>
   			<tr>
   				<td>QQ号码</td>
   				<td><input type="text" value="<%=students.getStuQq()%>" name="stu_QQ"></td>
   				<td>家长姓名</td>
   				<td><input type="text" value="<%=students.getStuParentName()%>" name="stu_parent_name"></td>
   			</tr>
   			<tr>
   				<td>省份</td>
   				<td><input type="text" value="<%=students.getStuProvince()%>" name="stu_province"></td>
   				<td>家长电话</td>
   				<td><input type="text" value="<%=students.getStuParentTel()%>" name="stu_parent_tel"></td>
   			</tr>
   			<tr>
   				<td>城市</td>
   				<td><input type="text" value="<%=students.getStuCity()%>" name="stu_id"></td>
   				<td>意向状态</td>
   				<td>
   					<select name="stu_status" value="<%=students.getStuStatus()%>">
   						<option value="无意向">无意向</option>
   						<option value="意向低">意向低</option>
   						<option value="意向中">意向中</option>
   						<option value="意向高">意向高</option>
   					
   					</select>
   				
   				</td>
   			</tr> 		
   		</table>
   
   
   <div>描述信息</div> <br/> 描述信息 <textarea name="stu_content" rows="" cols="" style="width:500;height:40;align:center" value="<%=students.getStuContent()%>"></textarea> <br/>
    <input type="submit" value="保存" style="margin-left:300;width:70;height:35"/> 
    
</form>
   <button name="back" style="float:right;margin:-50 500;width:100;height:35"><a href="stu_pay.jsp">返回上一级</a></button>
  </body>
</html>
